package com.ethan.orika;

import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.converter.ConverterFactory;
import ma.glasnost.orika.impl.DefaultMapperFactory;

/**
 * @author ethan
 * create 2018-04-18 下午1:52
 * desc
 **/
public class MapperFactoryHolder {
    public static MapperFactory mapperFactory;

    static {
        mapperFactory = new DefaultMapperFactory.Builder().build();
        ConverterFactory converterFactory = MapperFactoryHolder.mapperFactory.getConverterFactory();
        converterFactory.registerConverter(new JavaBeanCustomConverter());
    }
}
